package com.yipei.business.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yipei.business.mapper.MlTradeAccountMapper;
import com.yipei.common.core.domain.entity.MlTradeAccount;
import com.yipei.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yipei.business.mapper.MlDailySettlementInfoMapper;
import com.yipei.business.domain.MlDailySettlementInfo;
import com.yipei.business.service.IMlDailySettlementInfoService;

/**
 * 日结算信息Service业务层处理
 * 
 * @author yipei
 * @date 2024-12-21
 */
@Service
public class MlDailySettlementInfoServiceImpl extends ServiceImpl<MlDailySettlementInfoMapper, MlDailySettlementInfo> implements IMlDailySettlementInfoService
{
    @Autowired
    private MlDailySettlementInfoMapper mlDailySettlementInfoMapper;

    /**
     * 查询日结算信息
     * 
     * @param id 日结算信息主键
     * @return 日结算信息
     */
    @Override
    public MlDailySettlementInfo selectMlDailySettlementInfoById(Long id)
    {
        return mlDailySettlementInfoMapper.selectMlDailySettlementInfoById(id);
    }

    /**
     * 查询日结算信息列表
     * 
     * @param mlDailySettlementInfo 日结算信息
     * @return 日结算信息
     */
    @Override
    public List<MlDailySettlementInfo> selectMlDailySettlementInfoList(MlDailySettlementInfo mlDailySettlementInfo)
    {
        return mlDailySettlementInfoMapper.selectMlDailySettlementInfoList(mlDailySettlementInfo);
    }

    /**
     * 新增日结算信息
     * 
     * @param mlDailySettlementInfo 日结算信息
     * @return 结果
     */
    @Override
    public int insertMlDailySettlementInfo(MlDailySettlementInfo mlDailySettlementInfo)
    {
        mlDailySettlementInfo.setCreateTime(DateUtils.getNowDate());
        return mlDailySettlementInfoMapper.insertMlDailySettlementInfo(mlDailySettlementInfo);
    }

    /**
     * 修改日结算信息
     * 
     * @param mlDailySettlementInfo 日结算信息
     * @return 结果
     */
    @Override
    public int updateMlDailySettlementInfo(MlDailySettlementInfo mlDailySettlementInfo)
    {
        mlDailySettlementInfo.setUpdateTime(DateUtils.getNowDate());
        return mlDailySettlementInfoMapper.updateMlDailySettlementInfo(mlDailySettlementInfo);
    }

    /**
     * 批量删除日结算信息
     * 
     * @param ids 需要删除的日结算信息主键
     * @return 结果
     */
    @Override
    public int deleteMlDailySettlementInfoByIds(Long[] ids)
    {
        return mlDailySettlementInfoMapper.deleteMlDailySettlementInfoByIds(ids);
    }

    /**
     * 删除日结算信息信息
     * 
     * @param id 日结算信息主键
     * @return 结果
     */
    @Override
    public int deleteMlDailySettlementInfoById(Long id)
    {
        return mlDailySettlementInfoMapper.deleteMlDailySettlementInfoById(id);
    }
}
